import {Pagination} from "@/types";
import {PostRequest, GetRequest, http} from "./base";

export const login = (data = {}) => PostRequest("/api/user/login", data); // 登录

export const rolePermissionList = http.Get("/api/getPermissionRoleList"); // 获取角色列表
export const permissionList = http.Get("/api/getPermissionList"); // 获取权限列表

export const roleCreate = (data = {}) => PostRequest("/api/createRole", data); // 创建角色

export const getLogs = (data: Pagination) => GetRequest("/api/log/getList", data); // 获取日志列表
